home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
shareware
/
music
/
edplayer_2.1
/
edplayer.docs
/
edp2.1.commands.doc
< prev
next >
Wrap
Text File
|
1994-11-17
|
39KB
|
780 lines
============================================================================
A R E X X / T E L L E D S E C T I O N
============================================================================
This section describes EdPlayer commands which can be issued from ARexx,
or from programs like telled/cteled. I'll try to explain it so that even
people who are not familiar with ARexx can use the commands.
EdPlayer has a special message port. This port is more than an ARexx port,
because it can accept both ARexx messages and special "EdPlayer" messages
in the same port. The reason for this is that some unfortunate people
using OS1.3 still don't have ARexx! What are you guys waiting for??
Anyway, included in this archive are two programs and their respective
source codes, called "Telled" (Telled.asm) and "cteled" (cteled.c). The
two are almost identical: Telled was written in Assembly, being as SMALL
as possible, for easy use in script files. Cteled was written in Aztec C,
and is somewhat larger because it actually returns error messages on the
screen. Both of these programs transmit the special "EdPlayer" messages so
that ARexx is not required. Their source codes are provided in case you
want to write your own programs that transmit these messages. However, it
is strongly recommended that you look up in your ARexx manual the proper
way of sending true ARexx messages, so that you know how to send messages to
other ARexx applications, not just EdPlayer.
In EdPlayer 2.0, two new programs appear in the archive: "AskEd.rexx" and
"wport" (wport.c). AskEd.rexx is an ARexx script that should be used to
send the ARexx queries. EdPlayer cannot return a result (other than an
error) to telled and cteled, so you must use "rx AskEd <query>" to get
responses from EdPlayer. Wport is a little program I wrote that waits
for the EDPLAYER message port to appear. This is very useful for scripts
that launch EdPlayer and immediately try to send it commands; these scripts
should wait (with wport) for EdPlayer to set up its message port first.
See wport.c (it's commented) for info on how to use wport.
For those of you making script files: If you have ARexx, you'll almost
certainly want to make ARexx scripts instead of CLI scripts. For that, use
an "address 'EDPLAYER'" type command. Again, see your ARexx manual for
more details. NOTE: rexx:Startup.EdP (the startup script)
should ** NOT ** contain an "address 'EDPLAYER'" command! It automatically
addresses a special startup message port, so that programs waiting with
wport or whatever don't mix their messages in before the startup script
completes. ANYWAY, for you people without ARexx, you're stuck making CLI
scripts! For this, use "telled" or "cteled" as described here: NOTE!: the
parameters are different. Telled does NOT use quotes, while cteled DOES:
CORRECT:
>>>> telled PLAY mod.cream of the earth
;Note that telled NEVER needs any quotes no matter how many spaces are
;in the line.
>>>> cteled "PLAY mod.cream of the earth"
;Note that cteled NEEDS quotes, and all parameters go in the SAME
;set of quotes, because EdPlayer will parse it, NOT cteled.
>>>> telled play mod.cream of the earth
;NEW for EdP v1.1: Commands are no longer case-sensitive,
;EXCEPT the "MIDL" command's parameter which needs to be
;case-sensitive for looking up a midi_destination.
INCORRECT:
telled "PLAY mod.test module" ;telled NEVER needs quotes
X X
cteled "PLAY" "mod.test module" ;put ALL in one set of quotes
X X
Well, I hope you can get the hang of that. There should be some example
scripts in the archive, for more examples of sending commands.
----------------------------------------------------------------------------
Now it's time for a complete list of commands. Note that you may give ANY
of these commands to EdPlayer by (1) using the CLI/Shell to issue "telled"
or "cteled" as shown above, or (2) send the commands via ARexx to the ARexx
port "EDPLAYER" (port name is all caps).
I'll list the commands in the order they were created.
*** New for 2.0: Some commands are no longer 4 letters. However, only the
first 4 letters of ANY command are needed. Users complained that they
wanted to type "pause" instead of "paus", "eject" instead of "ejec",
etc. You can now do this (a) for commands that need no parameters
(this was actulally an undocumented feature in previous versions),
and (b) for commands that accept numbers as parameters. You may
NOT do it for commands that accept text as a parameter, such
as LOAD, PLAY, JUKE, and MIDL. These commands still need to be
only 4 letters long, with ONE SPACE between them and their parameter.
(The exception is the MESS command, which can be extended to MESSAGE).
Commands are presented with the first four letters capitalized. These
letters are the only ones used by EdPlayer to identify the command.
Any letters after them are optional, they are there just to make
script files more readable. For example, the command presented as "MESSage"
may be sent to EdPlayer as "mess", as "message", or even as
"messInTheHall". EdPlayer only looks at the first 4 letters.
Parameters in [<brackets>] are optional.
Parameters in <these things> are required!
LOAD <filename>
This command is used to load a module into EdPlayer. EdPlayer
automatically figures out what module type it is, but does not yet
start to play it. This command can NOT be used with programs! It
erases the current program. If you want to use programs, see JUKE
below. Anyway, LOAD will wait until the module finishes loading
before it returns, so it can report if there was an error or not.
Note: ALWAYS use a FULL PATH with LOAD, because the current
directory of EdPlayer may not match the current directory of the
program sending the command.
NEW for EdP v1.1: If you want to load a PP encrypted module, you
can do this: LOAD volume:path/modulename|password
(Please note the LACK of spaces around the "|").
If you don't give a password when needed, a password requester opens.
query: see ANAM.
PLAY [<filename>]
This command can be used with or without the parameter. If it is
given with no parameter, it will attempt to play the current song.
If there is a parameter, it will call LOAD first, and then PLAY.
This command will wait for the module to load, so it can report
errors like LOAD does, but it will return once the song begins to
play. Note: This is NOT the same as the PLAY button on the CD,
because there is no PAUSE feature here.
*** NEW for EdP v2.0: If there is no current song, and no parameter,
but there IS a current program, PLAY will grab a name from the
program and use it. To launch a program, I recommend PJUM, not PLAY.
see PAUS, CONT, PJUM, and NEXT. query: see ANAM.
STOP
Stops the music immediately, just like the STOP button.
EJECt
Ejects the current song, un-loading it from your CHIP mem.
(Just like the EJECT button!) Does nothing to your program.
see ERAS
VOLUme <volume>
Sets the music's volume, and affects the volume slide on the CD
player panel. <volume> can be an integer from 0 to 64.
The default is 64, the loudest.
see FADE. query: see AVOL.
PAUSe [<rate>]
This will pause the music. If there is no parameter, the music will
pause immediately. If there is a <rate>, then the music will fade
to a pause. Common <rate>s are: 1 = Very slow, 2 = slow,
4 = initial default fade rate from CD panel, 8 = medium fast, 16 =
fast. Integers from 1 to 32 usually work OK. NOTE: Entering a new
PAUSE rate may not affect the end-of-song fade-out rate, BUT, it
WILL set a new default for the panel's rate for everything. So next
time someone uses the panel to fade something, it will happen in the
last-used <rate>. This side-effect on the panel goe